package ru.gosoplata.service 
{
	import flash.net.SharedObject;
	/**
	 * ...
	 * @author 
	 */
	public class LocalStorageService 
	{
		private const _storageName:String = "payments";
		
		public function LocalStorageService() 
		{
			
		}
		
		public function load():String 
		{
			var so:SharedObject = SharedObject.getLocal(_storageName);
			return so.data.payments;
		}
		
		public function save(data:String):void 
		{
			var so:SharedObject = SharedObject.getLocal(_storageName);
			so.data.payments = data;
			so.flush();
		}
	}
}